package zhangzhongyuan.zuoye3;
import org.apache.ibatis.annotations.*;
import java.util.List;

@Mapper
public interface userMapper{
    @Select("select * from user where id=#{id}")
            List<User>userList(Integer id);

    @Insert("insert into user(id,name,gender) values(#{id},#{name},#{age})")
    void userInsert(User user);

    @Delete("delete from user where id=#{id}")
    void userDelete(Integer id);

    @Update("update user set name=#{user.name},age=#{user.age}where id=#{id}")
    void userUpdate(Integer id,User user);
}